// Copyright 2009 StarCite Inc.  All rights reserved.
// God.java 3:25:05 PM danny.liu
package com.billowsoft.sample.thread.lock;

/**
 * @author danny.liu Apr 18, 2012
 * @version 1.0
 * 
 */
public class God {

	public static void main(String[] args) {
		ProductFactory factory = new ProductFactory();
		Producer producer = new Producer(factory);
		producer.start();

		int consumerCount = 3;
		for (int i = 0; i < consumerCount; i++) {
			Consumer consumer = new Consumer(factory, "Consumer"
					+ i);
			consumer.start();
		}
	}

}
